package com.arvato.wxwork.controller.front.dictionary;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.arvato.minipro.bean.bean_dto.common.PageData;
import com.arvato.minipro.bean.bean_dto.common.Query;
import com.arvato.minipro.bean.bean_dto.common.Result;
import com.arvato.wxwork.bean.bean_do.dictionary.WxworkDictionaryMenuDo;
import com.arvato.wxwork.bean.bean_vo.dictionary.WxworkDictionaryMenuVo;
import com.arvato.wxwork.service.dictionary.WxworkDictionaryMenuService;


/**
 * 企业微信内容词典菜单设置Controller
 * @author zhan655
 *
 */
@Controller
@RequestMapping("/wxwork/dictionary/menu")
public class WxworkDictionaryMenuController {
	
	private Logger logger = LoggerFactory.getLogger(WxworkDictionaryMenuController.class);

	@Autowired
	private WxworkDictionaryMenuService wxworkDictionaryMenuService;
	
	/**
	 * 获取菜单列表
	 * @param req
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/list")
	public PageData listDictionaryMenu(HttpServletRequest req, @RequestParam Map<String, Object> param) {
		Query query = new Query(param);
		logger.info("获取菜单项列表");
		PageData pageData = wxworkDictionaryMenuService.listDictionaryMenuByQuery(query, query.getPageNum(), query.getPageSize());
		return pageData;
	}
	
	
	
	
	
}

